package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-07-03
 * Time: 14:26
 */
public abstract class User {
    protected String name;

    public IOperation[] iOperations;

    public User(String name){
        this.name = name;
    }
    public abstract int menu();

    public void doOPeration(int choice,BookList bookList){
        this.iOperations[choice].work(bookList);
    }
}
